package com.naiterui.ehp.bp.security.config;

import com.naiterui.ehp.bp.security.properties.LoginProperties;
import com.naiterui.ehp.bp.security.properties.SecurityProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置文件转换Pojo类的 统一配置 类
 */
@Configuration
@EnableConfigurationProperties
public class ConfigBeanConfiguration {

  @Bean
  public LoginProperties loginProperties() {
    return new LoginProperties();
  }

  @Bean
  public SecurityProperties securityProperties() {
    return new SecurityProperties();
  }

}
